VintaSoft Imaging .NET SDK 14.0: Documentation for .NET developer
Vintasoft.Imaging.Utils Namespace / StreamWrapper Class / Read Methods / Read(Byte[],Int32,Int32) Method
Syntax Exceptions Requirements SeeAlso
In This Topic
    Read(Byte[],Int32,Int32) Method (StreamWrapper)
    In This Topic
    Copies bytes from the current buffered stream to an array.
    Syntax
    'Declaration
    
    Public Overloads Overrides Function Read( _
    ByVal buffer
    The buffer to which bytes are to be copied.
    () As Byte, _
    ByVal offset
    The byte offset in the buffer at which to begin reading bytes.
    As System.Int32, _
    ByVal count
    The number of bytes to be read.
    As System.Int32 _
    ) As System.Int32
    public override System.Int32 Read(
    byte[] buffer,
    System.Int32 offset,
    System.Int32 count
    )
    public: System.Int32 Read(
    byte[]* buffer,
    System.Int32 offset,
    System.Int32 count
    ); override
    public:
    System.Int32 Read(
    array<byte>^ buffer,
    System.Int32 offset,
    System.Int32 count
    ); override

    Parameters

    buffer
    The buffer to which bytes are to be copied.
    offset
    The byte offset in the buffer at which to begin reading bytes.
    count
    The number of bytes to be read.

    Return Value

    The total number of bytes read into array.
    Exceptions
    ExceptionDescription
    Thrown if buffer is null.
    Thrown if offset or count is negative.
    Thrown if buffer is too short.
    Requirements

    Target Platforms: .NET9; .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

    See Also